package com.patentbackend.patentmanage;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
@EnableJpaAuditing // 启用JPA审计功能
@EnableAsync // 启用异步方法支持
@EnableGlobalMethodSecurity(prePostEnabled = true) // 启用Spring Security方法级安全
public class PatentManagerApplication {
    public static void main(String[] args) {

        SpringApplication.run(PatentManagerApplication.class, args);
    }
}